﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Diagnostics;
using UDPServer;
using DMSoft;
namespace OurCrawler
{
   
    public partial class Main : Form
    {

        Server server;

        public Main()
        {
            InitializeComponent();
            
            Control.CheckForIllegalCrossThreadCalls = false;
   
        }

        private void start_btn_Click(object sender, EventArgs e)
        {

            list_lview.Items.Clear();

            start_btn.Enabled = false;

            server = new Server( ref list_lview );
           
            
        }
     
        private void button1_Click(object sender, EventArgs e)
        {          
            Application.ExitThread();
        }

        private void settings_btn_Click(object sender, EventArgs e)
        {
            Settings settingsForm = new Settings();
            settingsForm.Show();
        }

        

    }
}
